package fr.pascal.polymorphisme;

public class Chat extends Animal {

	private String pelage;

	public Chat() {
//		System.out.println("Chat.Chat()");
	}

	public Chat(String nom, int age, String pelage) {
		super(nom, age);
		this.pelage = pelage;
//		System.out.println("Chat.Chat(nom, age, pelage)");
	}

	public String getPelage() {
		return pelage;
	}

	public void setPelage(String pelage) {
		this.pelage = pelage;
	}

	@Override
	public String toString() {
		return "Chat [nom=" + getNom() + ", age=" + getAge() + ", pelage="
				+ pelage + "]";
	}
}
